/**
 * @desc API注册文件
 */
const api = {}
const ctx = require.context('./route', true, /\.js$/)
ctx.keys()
	.forEach(key => {
		const name = key.replace(/.\/(\S+)\.js/, '$1')
		api[name] = ctx(key).default

	})
export default api
